Skip to main content
POST
/
functions
/
{name}
/
runs
[beta] Start a Function run.
curl --request POST \
  --url https://api.samsara.com/functions/{name}/runs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "paramsOverride": {
    "param1": "value1",
    "param2": "value2"
  }
}
'
{
  "data": {
    "correlationId": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

name
string
required

The name of the Function to run.

Body

application/json

Request body for starting a Function run.

paramsOverride
object
required

Parameter overrides for the Function execution. Can be an empty object but must be provided.

Example:
{ "param1": "value1", "param2": "value2" }

Response

OK response.

data
object
required

Response body after successfully starting a Function run.